home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / EVISION1.ARJ / TSTATUSL.HPP < prev    next >
C/C++ Source or Header  |  1992-05-19  |  3KB  |  53 lines

  1. #if !defined (TSTATUSLINE)                // To prevent multiple declarations
  2. #define TSTATUSLINE
  3.  
  4. // ---- Library Header Files ------------------------------------------------
  5.  
  6. #include <stdio.h>
  7. #include <conio.h>
  8.  
  9.  
  10. // ---- Class Declarations --------------------------------------------------
  11.  
  12. class tstatusline
  13. {
  14.    int  leftlength ;                                      // Left area length
  15.    int  leftbackground ;                        // Left area background color
  16.    int  leftforeground ;                        // Left area foreground color
  17.    int  lefthighlight ;                          // Left area highlight color
  18.    char huge *leftmessage ;                 // Left area current message text
  19.  
  20.    int  rightlength ;                                    // Right area length
  21.    int  rightbackground ;                      // Right area background color
  22.    int  rightforeground ;                      // Right area foreground color
  23.    int  righthighlight ;                        // Right area highlight color
  24.    char huge *rightmessage ;               // Right area current message text
  25.  
  26.    int  screenheight ;                                         // Screen size
  27.    int  screenwidth ;                                          // Screen size
  28.  
  29.    public:
  30.  
  31.         far tstatusline () ;                                   // Constructor
  32.         far ~tstatusline () ;                                   // Destructor
  33.  
  34.    void far setleftcolors                             // Set left area colors
  35.       ( int back,                               // Left area background color
  36.         int fore=BLACK,                         // Left area foreground color
  37.         int high=RED ) ;                         // Left area highlight color
  38.    void far setrightcolors                           // Set right area colors
  39.       ( int back,                              // right area background color
  40.         int fore=BLACK,                        // right area foreground color
  41.         int high=RED ) ;                        // right area highlight color
  42.    void far displayleft                           // Display msg in left area
  43.       ( char huge *text="" ) ;                        // Text to be displayed
  44.    void far displayright                         // Display msg in right area
  45.       ( char huge *text="" ) ;                        // Text to be displayed
  46.    void far refresh () ;                             // Redraw the statusline
  47. } ;
  48.  
  49.  
  50. // ---- End Header File ----------------------------------------------------
  51.  
  52. #endif
  53.